import json
import os
#操作数据
class Opeeation:
    @staticmethod
    def build_data(filedata):
        #打开文件
      with open(filedata,mode='r',encoding='utf_8') as f:
    #读取文件
       json_data = json.load(f)
       return json_data

if __name__ == '__main__':
    filepath =os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),'data/login.json')
    print(filepath)
    print(Opeeation.build_data(filepath))

